<div ng-controller="DhfprintCtrl"  ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/dhfprint/list">打印模板</a></li>
        <li class="active"> {{'info' | translate}}</li>
    </ul>
<print-type-tab ng-model="chosedType" click-tab="getlist()"></print-type-tab>   
<p><a class="sui-btn btn-primary" href="#/dhfprint/add?type_id={{type_id}}" >+{{"add_new"|translate}}</a></p>

    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{"tpl_name"|translate}}</th>
                <th>图片</th>
                <th>物流公司</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="print in printlist">
                <td>{{print.name}}
                </td>
                 <td><img ng-src="{{print.image}}" width="100" /></td>
                 <td> <carryway-type ng-model="print.shipping_corp"  stype="1" ></carryway-type></td>
                <td>
                    <a href="#/dhfprint/add?id={{print.print_pub_id}}&type_id={{type_id}}" class="sui-btn btn-primary"> {{'edit' | translate}}</a>
                    <button ng-click="delete(print.print_pub_id,$event)" class="sui-btn btn-danger"> {{'delete' | translate}}</button>
                    <button ng-click="Release(print.print_pub_id,$event)" class="sui-btn btn-success" ng-show="!print.status_id"> {{'发布' | translate}}</button>
                </td>
            </tr>
        </tbody>
    </table>
   
    <!-- 分页start -->
    <pager page-no="1" page-size="pageSize" total="printTotal" get-data="getlist(pageNo)"></pager>
    <!-- 分页end -->
</div>